<?php
namespace app\serverfund\service\currency;

use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-07-03 16:58:04
 * @Description: Description
 */
class CurrencyOptionLog extends ApiBase
{
    protected $currencyOptionLogValidate = '\app\serverfund\validate\CurrencyOptionLog';
    protected $currencyOptionLogLogic = '\app\serverfund\logic\CurrencyOptionLog';
    // 获取所数字币操作日志(分页)
    public function list(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'type'=>'', 'keywords'=>'', 'startTime'=>'', 'endTime'=>'']);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencyOptionLog/list', 'list');
    }
    // 获取某些user_ids的的数字币操作日志(分页)
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencyOptionLog/listByUserIds', 'listByUserIds');
    }
    // 获取某个用户某个状态的数字币操作日志分页数据
    public function listByUserType(): array
    {
        $data = $this->haveIssetReceiveData(['user_id'=>'0', 'type'=>' ', 'page'=>'1', 'list_rows'=>'']);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencyOptionLog/listByUserType', 'listByUserType');
    }
}